/* ****************************************************************************
 *
 * Copyright (c) Microsoft Corporation. 
 *
 * This source code is subject to terms and conditions of the Microsoft Permissive License. A 
 * copy of the license can be found in the License.html file at the root of this distribution. If 
 * you cannot locate the  Microsoft Permissive License, please send an email to 
 * ironpy@microsoft.com. By using this source code in any fashion, you are agreeing to be bound 
 * by the terms of the Microsoft Permissive License.
 *
 * You must not remove this notice, or any other, from this software.
 *
 *
 * ***************************************************************************/
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Scripting.Hosting;
using Microsoft.Scripting.Internal;
using Microsoft.Scripting.Shell;
using Microsoft.Scripting;

namespace Nua.Hosting {
    public sealed class NuaLanguageProvider : LanguageProvider 
    {

        public NuaLanguageProvider(ScriptDomainManager environment)
            : base(environment) 
        {
        }

        public override string LanguageDisplayName 
        {
            get { return "Nua"; }
        }
        
        public override ScriptEngine GetEngine(EngineOptions options) 
        {
            if (options != null && !(options is NuaEngineOptions)) throw new ArgumentException("options");
            return NuaEngine.Factory.GetInstance(this, (NuaEngineOptions)options);
        }

        public override CommandLine GetCommandLine() 
        {
            return new NuaCommandLine();
        }

        public override OptionsParser GetOptionsParser() 
        {
            return new NuaOptionsParser();
        }

        public override TokenCategorizer GetTokenCategorizer() 
        {
            throw new NotImplementedException();
        }
    }
}

